﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class occupants : MonoBehaviour {

	// Use this for initialization

	public Image thisimage;
	public Sprite blank;
	public Sprite one;
	public Sprite two;
	public Sprite three;
	public Sprite four;
	public Sprite five;
	public Sprite six;
	public Sprite seven;
	public Sprite eight;



	void Start () {
	
	}

	// Update is called once per frame
	void Update () {

	}

	public void update(int newnumber)
	{
		if (newnumber == 0) thisimage.sprite = blank;
		if (newnumber == 1)	thisimage.sprite = one;
		if (newnumber == 2)	thisimage.sprite = two;
		if (newnumber == 3)	thisimage.sprite = three;
		if (newnumber == 4)	thisimage.sprite = four;
		if (newnumber == 5)	thisimage.sprite = five;
		if (newnumber == 6)	thisimage.sprite = six;
		if (newnumber == 7)	thisimage.sprite = seven;
		if (newnumber == 8)	thisimage.sprite = eight;
	}
}
